import Vue from 'vue'
import Router from 'vue-router'
import {constantRouterMap} from '@/config/router.config'

Vue.use(Router)

export default new Router({
    mode: 'history',//nginx部署方式
    // mode: 'hash',//极简部署方式
    // base: process.env.BASE_URL,
    base: '/zhwl/',
    scrollBehavior: () => ({y: 0}),
    routes: constantRouterMap
})